package com.zyg.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zyg.dao.HostelMapper;
import com.zyg.pojo.EchartsData;
import com.zyg.pojo.Hostel;
import com.zyg.service.HostelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("hostelService")
public class HostelServiceImpl extends ServiceImpl<HostelMapper, Hostel> implements HostelService {
    @Autowired private HostelMapper hostelMapper;
    @Override
    public List<EchartsData> getGradeIndexData() {
        return hostelMapper.getGradeIndexData();
    }
}
